class MyFolderModel {
  int? errcode;
  String? errmsg;
  List<MyFolderItemModel>? data;
  String? message;

  MyFolderModel({this.errcode, this.errmsg, this.data, this.message});

  MyFolderModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    if (json['data'] != null) {
      data = <MyFolderItemModel>[];
      json['data'].forEach((v) {
        data!.add(new MyFolderItemModel.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class MyFolderItemModel {
  int? id;
  String? name;
  var data;
  int? parentId;
  Null? children;

  MyFolderItemModel({this.id, this.name, this.parentId, this.children,this.data});

  MyFolderItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    parentId = json['parent_id'];
    children = json['children'];
    data = json['data'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['parent_id'] = this.parentId;
    data['children'] = this.children;
    return data;
  }
}
